package com.haier.iot.dubbo.controller;

import com.haier.iot.dubbo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zhang Tianhui 2021/10/20
 * @version 1.0.0
 */
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/dubbo/provider/order")
    public String getOrder() {
        return orderService.getOrder();
    }
}
